package com.game.model.map;

import java.io.Serializable;

/**
 * @Description:传送阵
 **/
public class Tranfer implements Serializable {
    private int id;//传送阵编号
    private int nextId;//下一个地图的id
    private MapPoint mapPoint;//传送到的位置
    private String description;//地图描述


    public Tranfer() {
    }

    public Tranfer(int id, int nextId, MapPoint mapPoint, String description) {
        this.id = id;
        this.nextId = nextId;
        this.mapPoint = mapPoint;
        this.description = description;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNextId() {
        return nextId;
    }

    public void setNextId(int nextId) {
        this.nextId = nextId;
    }

    public MapPoint getMapPoint() {
        return mapPoint;
    }

    public void setMapPoint(MapPoint mapPoint) {
        this.mapPoint = mapPoint;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Tranfer{" +
                "id=" + id +
                ", nextId=" + nextId +
                ", mapPoint=" + mapPoint +
                ", description='" + description + '\'' +
                '}';
    }
}
